package com.ruoyi.shop.member.service;

import java.util.List;
import com.ruoyi.shop.member.domain.ShopMemberAddress;

/**
 * 会员地址Service接口
 * 
 * @author xuxiang
 * @date 2022-12-06
 */
public interface IShopMemberAddressService 
{
    /**
     * 查询会员地址
     * 
     * @param addrId 会员地址主键
     * @return 会员地址
     */
    public ShopMemberAddress selectAddressById(Long addrId);
    
	/**
	 * 查询会员地址
	 * 
	 * @param memberId 会员id
	 * @return 会员地址
	 */
	public List<ShopMemberAddress> selectAddressByMemberId(Long memberId);

    /**
     * 查询会员地址列表
     * 
     * @param ShopMemberAddress 会员地址
     * @return 会员地址集合
     */
    public List<ShopMemberAddress> selectAddressList(ShopMemberAddress ShopMemberAddress);

    /**
     * 新增会员地址
     * 
     * @param ShopMemberAddress 会员地址
     * @return 结果
     */
    public int insertAddress(ShopMemberAddress ShopMemberAddress);

    /**
     * 修改会员地址
     * 
     * @param ShopMemberAddress 会员地址
     * @return 结果
     */
    public int updateAddress(ShopMemberAddress ShopMemberAddress);

    /**
     * 批量删除会员地址
     * 
     * @param addrIds 需要删除的会员地址主键集合
     * @return 结果
     */
    public int deleteAddressById(Long addrId);
    
	/**
	 * 获取会员默认地址
	 * 
	 * @param memberId
	 */
	public ShopMemberAddress getDefaultAddress(Long memberId);
	/**
	 * 取消会员默认地址
	 * 
	 * @param memberId 会员id
	 * @return
	 */
	public void cancelDefaultAddress(Long memberId);

}
